<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php /*?><?php
$str = "3275896";
$arr1 = str_split($str);
echo "<pre>";
print_r ($arr1);
echo "</pre>";
?>
<?php */?>

<?php
	mysql_connect("localhost", "root", "");
	mysql_select_db("mydb");
	
	/*for($i = 0; $i<100; $i++){
		mysql_query("INSERT INTO huyen(tinh_id, ten_huyen) VALUES('55', 'Dong chua')");
		
		}*/
		
	$sql = "SELECT * FROM nhom_tin_tuc WHERE parent = 0 ORDER BY id DESC";
       $resulft = mysql_query($sql);
        if ($resulft != 0) {
            while ($row = mysql_fetch_assoc($resulft)) {
                $data[] = $row;		
            }
            echo "<pre>";
			print_r($data);
			echo "</pre>";
        } else {
            return FALSE;
        }
		
	/*mysql_query("delete from tinh");*/
?>
</body>
</html>